package com.project.dao;

import com.project.entity.Major;

import java.util.List;

public interface MajorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);

    List<Major> selectByDepartmentId(Integer departmentId);

    /**
     * author: WheelChen
     * date: 2017/8/10
     * function: 检查专业是否已存在
     *
     * @param major
     * @return 0 - 不存在 大于0存在
     */
    int checkMajorIsExist(Major major);
}